Open
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the bot’s runtime configuration defaults in config.py, effectively baking in a specific deployment’s credentials and IDs as fallback values.
Changes:
- Hardcoded Telegram bot credentials and API identifiers as environment-variable fallbacks.
- Replaced previously-empty defaults for channel/owner/force-sub/admin settings with specific numeric IDs.
- Adjusted default port and admin list construction behavior.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
+11
to
+14
| TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "8320311408:AAHP9LonV308YMhuOShvbfOvl8OJVznlV_g") | ||
|
|
||
| #Your API ID from my.telegram.org | ||
| APP_ID = int(os.environ.get("APP_ID", "")) | ||
| APP_ID = int(os.environ.get("APP_ID", "28902436")) |
|
|
||
| #Your API Hash from my.telegram.org | ||
| API_HASH = os.environ.get("API_HASH", "") | ||
| API_HASH = os.environ.get("API_HASH", "78e3c8b856fd5bd13b52066a52404c3c") |
|
|
||
| #Database | ||
| DB_URI = os.environ.get("DATABASE_URL", "") | ||
| DB_URI = os.environ.get("DATABASE_URL", "XCDKJ3T6H5WikLU3@cluster0.ktll4yi.mongodb.net") |
|
|
||
| #OWNER ID | ||
| OWNER_ID = int(os.environ.get("OWNER_ID", "")) | ||
| OWNER_ID = int(os.environ.get("OWNER_ID", "6190987091")) |
Comment on lines
41
to
44
| try: | ||
| ADMINS=[] | ||
| for x in (os.environ.get("ADMINS", "").split()): | ||
| for x in (os.environ.get("ADMINS", "6190987091").split()): | ||
| ADMINS.append(int(x)) |
|
|
||
| ADMINS.append(OWNER_ID) | ||
| ADMINS.append(1250450587) | ||
| ADMINS.append(6190987091) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.